package com.design.graduation.asdemo.utils;

import android.widget.Toast;

import com.design.graduation.asdemo.application.BaseApplication;


/**
 * @author by weijianxing on 10/13/15.
 */
public class ToastUtil {

    /**
     * 显示长时间的Toast
     *
     * @param msg
     */
    public static void showLongToast(CharSequence msg) {
        Toast.makeText(BaseApplication.getInstance().getBaseContext(), msg, Toast.LENGTH_LONG).show();
    }

    /**
     * 显示短时间的Toast
     *
     * @param msg
     */
    public static void showShortToast(CharSequence msg) {
        Toast.makeText(BaseApplication.getInstance().getBaseContext(), msg, Toast.LENGTH_SHORT).show();
    }
}
